# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=xcursorgen
pkgver=1.0.7
pkgrel=1
pkgdesc="Create and X cursor file from PNG images"
url="https://xorg.freedesktop.org/archive/individual/app/"
arch="all"
license="Custom"
makedepends="xorg-server-dev libxcursor-dev libpng-dev"
subpackages="$pkgname-doc"
source="https://xorg.freedesktop.org/archive/individual/app/xcursorgen-$pkgver.tar.bz2"

build() {
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -m755 -d "$pkgdir/usr/share/licenses/$pkgname"
	install -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/"
}

check() {
	make check
}

sha512sums="bd13ad23691d3daa2d5dcdc5902cf62e3dcb97a0289aff362e6cd85866a1d8cafb64f98800a75bfb4cf1f3c76244ca20201847dff594543d136d0abaec7011d2  xcursorgen-1.0.7.tar.bz2"
